package com.jming.jike.common;

/**
 * 响应枚举
 *
 * @author jming
 */

public enum ResponseCode {
    /**
     * 操作成功
     */
    SUCCESS("SYS.SUCCESS", "操作成功"),

    /**
     * 参数错误
     */
    PARAM_EXCEPTION("PARAM.EXCEPTION", "参数错误"),

    /**
     * 业务异常,请稍后再试
     */
    BUSINESS_EXCEPTION("BIZ.BUSINESS_EXCEPTION", "业务异常,请稍后再试"),

    /**
     * 系统繁忙,请稍后再试
     */
    SYSTEM_EXCEPTION("SYS.SYSTEM_EXCEPTION", "系统繁忙,请稍后再试");

    private final String code;
    private final String message;

    ResponseCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}